% ------------------------------------------------------------
% Copyright (C) <2011>  <David Reguera Garcia - Dreg@fr33project.org>

% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.

% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.

% You should have received a copy of the GNU General Public License
% along with this program.  If not, see <http://www.gnu.org/licenses/>.
% ------------------------------------------------------------

\documentclass[12pt,a4paper]{book}
\usepackage[spanish,english]{babel}
\usepackage{url}
\usepackage{color}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage[autocite=inline, labelalpha=true, style=alphabetic]{biblatex}
\usepackage{makeidx}
\usepackage{tocbibind}
\usepackage[lmargin=2.5cm, rmargin=2.5cm,tmargin=2.5cm,bmargin=2.5cm]{geometry}
\usepackage[compact]{titlesec}
\usepackage[parfill]{parskip}


\nocite{*}

\titleformat{\chapter}[display]
  {\bfseries\Huge}
  {\filright\Large\chaptertitlename\ \thechapter}
  {0mm}{\filright}
\titlespacing*{\chapter}
  {0pt}{-10pt}{15pt}

\makeindex

\bibliography{mybib}


\newcommand{\keyword}[1]{\index{#1}#1}
\newcommand{\ocite}[1]{\footfullcite{#1}}
\newcommand{\oscite}[1]{\cite{#1}}
\newcommand{\paraph}{\paragraph{}}

\let\cleardoublepage\clearpage

\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[C]{\thepage}
\fancyhead[LE,RO]{\slshape \rightmark}
\fancyhead[LO,RE]{\slshape \leftmark}

\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\hypersetup{
  colorlinks = true,
  linkcolor=blue,   % color of internal links
  citecolor=blue,   % color of links to bibliography
  urlcolor=blue,    % color of external links
  pagebackref=true,
  implicit=false,
  bookmarks=true,
  bookmarksopen=true,
  pdfdisplaydoctitle=true
}

\begin{document}
\title{The Wildflamenco book: \url{http://wildflamenco.blogspot.com/}{\normalsize \newline Youtube channel: \url{http://www.youtube.com/user/wildflamenco}}\begin{figure} [h]
\begin {center}
\includegraphics[width=0.2\textwidth]{wild.jpg}
\end {center}
\end{figure} \newline The free flamenco book}
\author{David Reguera Garcia - Dreg@fr33project.org \\\\Co-authors: -}
\maketitle
\date{}

\titlespacing*{\chapter}{0pt}{-40pt}{15pt}
\fancyhead[LE,RO]{}
\setcounter{tocdepth}{3}
\tableofcontents
\fancyhead[LE,RO]{\slshape \rightmark}

\chapter{License / Licencia}
\paraph{}
Copyright (C) 2011 David Reguera Garcia - Dreg@fr33project.org

\paraph{}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

\paraph{}
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

\paraph{}
You should have received a copy of the GNU General Public License
along with this program.  If not, see http://www.gnu.org/licenses/.


\chapter{...}
\paraph{}
...

\section{...}
\paraph{}
...

\subsection{...}
\paraph{}
...

\subsubsection{...}
\paraph{}
...


\chapter{Greetings}
\paraph{}
........

\fancyhead[LE,RO]{}
\printbibliography[heading=bibintoc]

\clearpage
\phantomsection
\printindex


\end{document}

























